package com.punai.config.domain;

import com.punai.common.core.domain.TreeParentBo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;

/**
 * 清单库对象 config_inventory_chapter
 *
 * @author zxw
 * @date 2023-03-22
 */
public class ConfigInventoryChapter extends BaseEntity implements TreeParentBo {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * $column.columnComment
     */
    private Long companyId;

    /**
     * $column.columnComment
     */
    private String chapterName;

    /**
     * $column.columnComment
     */
    private String pid;

    /**
     * $column.columnComment
     */
    private String pids;

    /**
     * 类型   Z专业  F分部
     */
    private String chapterType;

    /**
     * 规范
     */
    private String listNorm;

    /**
     * 清单库类型   G 国标Q企标 F 非标
     */
    @Excel(name = "清单库类型   G 国标Q企标 F 非标")
    private String type;

    private Integer orderNum;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPid() {
        return pid;
    }

    @Override
    public String getName() {
        return chapterName;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getPids() {
        return pids;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public String getChapterType() {
        return chapterType;
    }

    public void setChapterType(String chapterType) {
        this.chapterType = chapterType;
    }

    public String getListNorm() {
        return listNorm;
    }

    public void setListNorm(String listNorm) {
        this.listNorm = listNorm;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("chapterName", getChapterName())
                .append("pid", getPid())
                .append("pids", getPids())
                .append("type", getType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
